﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MailProcessing
{
    public class FTPSettings
    {
        public string FtpFolderPath { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public bool IsFolderExist { get; set; }
        public string FileName { get; set; }
        private static FTPSettings instance;
        private FTPSettings()
        {
            this.FtpFolderPath = ConfigurationManager.AppSettings["FtpFolderPath"]; // @"ftp://mandrake.arvixe.com/manga/mail_autoprocessing";
            this.UserName = ConfigurationManager.AppSettings["FtpUserName"]; // "hainguyen";
            this.Password = ConfigurationManager.AppSettings["FtpPassword"]; // "1qazxsw2";
            this.IsFolderExist = false;
            this.FileName = ConfigurationManager.AppSettings["FtpFileName"]; // "test.txt";
        }
        public static FTPSettings GetInstance()
        {
            if (instance == null)
            {
                instance = new FTPSettings();               
            }
            return instance;
        }
    }
}
